package io.renren.modules.app.req;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 短信注册
 * 
 * @author
 * @email
 * @date 2021-01-12 16:56:22
 */
@Data
@ApiModel(value = "SmsRegisterReq对象", description = "短信注册请求")
public class SmsRegisterReq implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "手机号")
	@NotBlank(message="手机号不能为空")
	@Pattern(regexp = "^(((13[0-9])|(14[579])|(15([0-3]|[5-9]))|(16[6])|(17[0135678])|(18[0-9])|(19[0-9]))\\d{8})$", message = "手机号格式错误")
	private String mobile;

	@ApiModelProperty(value = "密码")
	@NotBlank(message="密码不能为空")
	private String password;

	@ApiModelProperty(value = "验证码")
	@NotBlank(message="验证码不能为空")
	private String code;
}
